<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "project".
 *
 * @property int $id
 * @property string $pro_title
 * @property string $cover_img
 * @property string $pro_content
 * @property int $update_time
 * @property int $create_time
 */
class Project extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'project';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['pro_title', 'cover_img', 'pro_content', 'update_time', 'create_time'], 'required'],
            [['pro_content'], 'string'],
            [['update_time', 'create_time'], 'integer'],
            [['pro_title'], 'string', 'max' => 64],
            [['cover_img'], 'string', 'max' => 128],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'pro_title' => 'Pro Title',
            'cover_img' => 'Cover Img',
            'pro_content' => 'Pro Content',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
        ];
    }
}
